package top.ewind.controller.wx;


import com.jfinal.weixin.sdk.api.ApiResult;
import com.jfinal.weixin.sdk.utils.HttpUtils;

public class UserApi {
		// 发送短信验证码
		private static String sendverifycode = "http://api.life.aigo.com/sendVerifyCode.html?";
		// 用户是否存在
		private static String UserNameExist = "http://api.aigolife.com/if/account.jhtml?";
		// 注册
	/*	private static String sendverifycode = "http://api.life.aigo.com/sendVerifyCode.html?";*/
		// 登录
		private static String account = "http://api.aigolife.com/if/account.jhtml?";
	
		public static ApiResult sendverifycode(String jsonStr) {
	        String jsonResult = HttpUtils.get(sendverifycode+jsonStr);
	        return new ApiResult(jsonResult);
	    }
		
		public static ApiResult account(String jsonStr) {
	        String jsonResult = HttpUtils.get(account+jsonStr);
	        return new ApiResult(jsonResult);
	    }
		
		public static ApiResult UserNameExist(String jsonStr) {
	        String jsonResult = HttpUtils.get(UserNameExist+jsonStr);
	        return new ApiResult(jsonResult);
	    }
}
